/**
 * 
 */
package com.testing.junit;

import org.junit.After;
import org.junit.Before;

/**
 * @author Jason
 *
 */
public abstract class AbstractJUnitTestCase {
	
	protected StringBuilder sb=new StringBuilder(1000);
	
	/**
	 * just in case usage
	 * @param pClassName
	 */
	public AbstractJUnitTestCase(String pClassName) {
		// setup log4j etc...
	}
	
	@Before
	public void doBeforeMethod() {
		if (this.sb.length()>0) {
			this.sb.delete(0, this.sb.length());
		}
	}
	
	@After
	public void doAfterMethod() {
		if (this.sb.length()>0) {
			System.out.println(this.sb);
		}
	}
}
